{% extends "layout.html" %}
{% from 'form_field.html'import form_field %}
{% block body %}
{% if error %}<p class=error>{{ error }}{%endif%}
    <form action="{{ url_for('login', next=request.args.get('next','')) }}" class="form form-horizontal" method="post">
        {{ form_field(form.email) }}
        {{ form_field(form.password) }}
        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9">
                <div class="checkbox">
                    <label>{{ form.remember_me() }} 记住我</label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9">
                <button type="submit" class="btn btn-primary">登录</button>
            </div>
        </div>
    </form>
{% endblock %}
